package org.openwebtop.sunshine.dao;

import java.util.List;

import org.openwebtop.sunshine.model.Component;

public class ComponentDAO extends AbstractDAO {
	private final static String NAMESPACE = "component";

	public Component selectComponent(int id) throws Exception {
		return (Component)sqlMapClient.queryForObject(NAMESPACE + ".selectComponent", id);
	}

	@SuppressWarnings("unchecked")
	public List<Component> selectComponentList() throws Exception {
		return sqlMapClient.queryForList(NAMESPACE + ".selectComponentList");
	}

}
